package com.grt.common.convert.impl;

import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

import com.grt.admin.domain.Article;
import com.grt.admin.domain.dto.ArticleDTO;
import com.grt.common.convert.DTOConvertDO;

@Component
public class ArticleDTOConvertDO implements DTOConvertDO<ArticleDTO, Article> {

	@Override
	public Article convert(ArticleDTO articleDTO) {
		Article oArticle = new Article();
		BeanUtils.copyProperties(articleDTO, oArticle);
		return oArticle;
	}

}
